<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!--<div class="form-group">
        <label for="c-group_id" class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-4">
            {$groupList}
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('专家姓名')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('实名认证')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control" type="text" disabled value="{$row.verification_status_name}">
        </div>
    </div>
    <!--<div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-email" data-rule="" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('微信号')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-wechat" data-rule="" class="form-control" name="row[wechat]" type="text" value="{$row.wechat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('工作年限')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-work_year" data-rule="" class="form-control" name="row[work_year]" type="text" value="{$row.work_year|htmlentities}" style="width: 70%;">年
        </div>
    </div>
    <div class="form-group">
        <label for="c-category_id" class="control-label col-xs-12 col-sm-2">{:__('职位角色')}:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[category_id]', $categorydata, $row.category_id, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-livels_id" class="control-label col-xs-12 col-sm-2">{:__('职级')}:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[livels_id]', $levels, $row.livels_id, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('时薪')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-wage" data-rule="" class="form-control" name="row[wage]" type="text" value="{$row.wage|htmlentities}" style="width: 70%;">元
        </div>
    </div>
    <div class="form-group">
        <label for="c-city" class="control-label col-xs-12 col-sm-2">{:__('所在地区')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-toggle="city-picker" id="c-city" data-rule="" class="form-control" name="row[city]" type="text" value="{$row.city|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-skill" class="control-label col-xs-12 col-sm-2">{:__('技能标签')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$skill.skillstr}
        </div>
    </div>
    <div class="form-group">
        <label for="c-expertise" class="control-label col-xs-12 col-sm-2">{:__('擅长领域')}:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="expertise" class="form-control selectpicker" multiple name="row[expertise][]">
                {foreach name="expertise" item="expertiseVal"}
                    {if in_array($key, $row.expertise)}
                        <option value="{$key}" selected="selected">{$expertiseVal}</option>
                    {else /}
                        <option value="{$key}">{$expertiseVal}</option>
                    {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-self_introduction_content" class="control-label col-xs-12 col-sm-2">{:__('自我介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$row.self_introduction_content}
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('身份证')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-card_num" data-rule="" class="form-control" disabled type="text" value="{$row.card_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('身份证有效期')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-card_endtime" data-rule="" class="form-control" disabled type="text" value="{$row.card_endtime|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('身份证正面')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-card_zheng" style="display: none;" data-rule="" class="form-control" size="50" type="text" value="{$row.card_zheng}">
                <div class="input-group-addon no-border no-padding">
                    {if $row.card_zheng}
                    <span><img src="{$row.card_zheng}"  style="width: 300px; height: 150px;"></span>
                    <span><a href="{$row.card_zheng}" download="身份证正面">下载</a></span>
                    {/if}
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('身份证反面')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-card_fan" style="display: none;" data-rule="" class="form-control" size="50" type="text" value="{$row.card_fan}">
                <div class="input-group-addon no-border no-padding">
                    {if $row.card_fan}
                    <span><img src="{$row.card_fan}"  style="width: 300px; height: 150px;"></span>
                    <span><a href="{$row.card_fan}" download="身份证反面">下载</a></span>
                    {/if}
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-links" class="control-label col-xs-12 col-sm-2">{:__('在线作品链接')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-links" data-rule="" class="form-control" name="row[links]" type="text" value="{$row.links|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('简历')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input style="display:none;" id="c-avatar" data-rule="" class="form-control" size="50" name="row[notesfile]" type="text" value="{$row.notesfile}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,application/pdf" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!--<span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
                    {if $row.notesfile}
                    <span><a href="{$row.notesfile}" download="简历">下载</a></span>
                    {/if}
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-remark_content" class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-4">
            <textarea id="c-remark_content" data-rule="" class="form-control" name="row[remark_content]" type="text">{$row.remark_content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-bank_username" class="control-label col-xs-12 col-sm-2">{:__('户名')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-bank_username" data-rule="" class="form-control" disabled="disabled" type="text" value="{$row.bank_username|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="number" value="{$row.money}">
        </div>
    </div>-->
    <div class="form-group">
        <label for="c-score" class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-score" data-rule="required" class="form-control" type="number" name="row[score]" value="{$row.score}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-credit" class="control-label col-xs-12 col-sm-2">{:__('信用分')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-credit" data-rule="required" class="form-control" type="number" name="row[credit]" value="{$row.credit}">
        </div>
    </div>
    <!--<div class="form-group">
        <label for="c-successions" class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-successions" data-rule="required" class="form-control" name="row[successions]" type="number" value="{$row.successions}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-maxsuccessions" class="control-label col-xs-12 col-sm-2">{:__('Maxsuccessions')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-maxsuccessions" data-rule="required" class="form-control" name="row[maxsuccessions]" type="number" value="{$row.maxsuccessions}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-prevtime" class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-prevtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[prevtime]" type="text" value="{$row.prevtime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-logintime" class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-logintime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[logintime]" type="text" value="{$row.logintime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-loginip" class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-loginip" data-rule="required" class="form-control" name="row[loginip]" type="text" value="{$row.loginip}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-loginfailure" class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-loginfailure" data-rule="required" class="form-control" name="row[loginfailure]" type="number" value="{$row.loginfailure}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-joinip" class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-joinip" data-rule="required" class="form-control" name="row[joinip]" type="text" value="{$row.joinip}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-jointime" class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-jointime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[jointime]" type="text" value="{$row.jointime|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
